package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.TreeEntity;

/**
 * 区域管理对象 tb_area
 * 
 * @author hm
 * @date 2024-11-25
 */
public class Area extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 内码 */
    private String indexCode;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 父节点内码 */
    @Excel(name = "父节点内码")
    private String parentIndexCode;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 是否为货架1true0false */
    @Excel(name = "是否为货架1true0false")
    private Long islabel;

    /** 区域类别 */
    @Excel(name = "区域类别")
    private Long areaType;

    /** 描述 */
    @Excel(name = "描述")
    private String detail;

    /** 区域路径 */
    private String areaPath;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIndexCode(String indexCode) 
    {
        this.indexCode = indexCode;
    }

    public String getIndexCode() 
    {
        return indexCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentIndexCode(String parentIndexCode) 
    {
        this.parentIndexCode = parentIndexCode;
    }

    public String getParentIndexCode() 
    {
        return parentIndexCode;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setIslabel(Long islabel) 
    {
        this.islabel = islabel;
    }

    public Long getIslabel() 
    {
        return islabel;
    }
    public void setAreaType(Long areaType) 
    {
        this.areaType = areaType;
    }

    public Long getAreaType() 
    {
        return areaType;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setAreaPath(String areaPath) 
    {
        this.areaPath = areaPath;
    }

    public String getAreaPath() 
    {
        return areaPath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("indexCode", getIndexCode())
            .append("name", getName())
            .append("parentIndexCode", getParentIndexCode())
            .append("sort", getSort())
            .append("islabel", getIslabel())
            .append("areaType", getAreaType())
            .append("detail", getDetail())
            .append("areaPath", getAreaPath())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
